//// demo_prog/chapter6/demo_scanf_multi_string.c
/// scanf()输入多个字符串示例
#include <stdio.h>
int main(void)
{
    char str1[5] = {0}, str2[5] = {0}, str3[5] = {0};
    // 输入三个字符串
    scanf("%s%s%s", str1, str2, str3);
    printf("str1 is \"%s\"\n", str1);
    printf("str2 is \"%s\"\n", str2);
    printf("str3 is \"%s\"\n", str3);
    return 0;
}
// 输入"How are you?"后, 三个数组的情况是
/*
str1 = {'H', 'o', 'w', '\0', '\0'};
str2 = {'a', 'r', 'e', '\0', '\0'};
str3 = {'y', 'o', 'u', '?', '\0'};
*/